import axios from 'axios'

export function search(input,PageNumber,Sort,MinPrice,MaxPrice,CategoryId) {
  return axios.get('/api/Products', {
    params: {
      HeaderLine: input,
      PageNumber,
      PageSize: 30,
      Sort,
      MinPrice,
      MaxPrice,
      CategoryId
    }
  }).then((response) => {
    return Promise.resolve(response.data)

  })
    .catch(function (error) {
      console.log(error)
    })
}


